from django.urls import path

from . import views

urlpatterns = [
    # 用户名重复
    # GET http://www.meiduo.site:8000/usernames/itcast/count/
    path('usernames/<username:username>/count/',views.UsernameCountView.as_view()),

    # 用户注册
    # POST http://www.meiduo.site:8000/register/
    path('register/',views.RegisterView.as_view()),

    # 手机号重复
    # GET http://www.meiduo.site:8000/mobile/itcast/count/
    path('mobiles/<mobile:mobile>/count/',views.MobileCountView.as_view()),

    # 用户登录
    # GET http://www.meiduo.site:8000/loin/
    path('login/',views.LoginView.as_view()),

    # 用户退出
    # GET http://www.meiduo.site:8000/logout/
    path('logout/',views.LogoutView.as_view()),

    # 用户中心
    # GET http://www.meiduo.site:8000/info/
    path('info/',views.UserInfoView.as_view()),

]